package com.example.springsecuritydemo2.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;


    private String userName;


    private String nickName;

    @JSONField(serialize = false)
    private String password;

    private String status;


    private String email;


    private String phoneNumber;


    private String sex;


    private String avatar;


    private String userType;


    private Long createBy;


    private LocalDateTime createTime;


    private Long updateBy;


    private LocalDateTime updateTime;

    private Integer deleted;
}
